Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: playbook AI Action #1693

Merged
merged 12 commits into from
Dec 27, 2024
Merged

feat: playbook AI Action #1693

merged 12 commits into from
Dec 27, 2024

Conversation

adityathebe
Copy link
Member

resolves: #1642

@adityathebe adityathebe force-pushed the feat/playbook-ai branch 10 times, most recently from 2526270 to f9265d4 Compare December 24, 2024 16:07
@adityathebe adityathebe marked this pull request as ready for review December 24, 2024 16:07
playbook/actions/ai.go Outdated Show resolved Hide resolved
@adityathebe adityathebe force-pushed the feat/playbook-ai branch 2 times, most recently from e8d32d7 to 642912a Compare December 25, 2024 10:55
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bringing this in from duty.
It's a hassle to update schemas as we need to first make a duty release with an unmerged schema.

@adityathebe adityathebe requested a review from moshloop December 26, 2024 08:11
type AIAction struct{}

type AIActionResult struct {
Logs string `json:"logs,omitempty"` // TODO: only naming this "logs" because the frontend has proper formatted display for this field
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to return a markdown response,

We could probably convert https://codesandbox.io/p/sandbox/markdown-to-slack-converter-iphgn?file=%2Fsrc%2Findex.js%3A25%2C56 into a go function and then just call markdownToSlackBlocks

@moshloop moshloop merged commit b708619 into main Dec 27, 2024
7 checks passed
@moshloop moshloop deleted the feat/playbook-ai branch December 27, 2024 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Playbooks - AI actions
2 participants